<template>
  <van-nav-bar class="header" :title="title.name" left-arrow @click-left="onClickLeft">
    <span class="more" slot="right">
      <img :src="title.more" alt />
    </span>
  </van-nav-bar>
</template>

<script>
export default {
  name: "TitleBar",
  data() {
    return {
      title: []
    }
  },
  mounted(){
    this.title = this.$parent.titleName
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    }
  }
}
</script>